package com.langfeiyes.pattern.bridge.v1;

public class App {

    public static void main(String[] args) {
        //支付宝平台
        new AlipayPlaform(new BalancePay()).pay(1000);    //余额
        new AlipayPlaform(new BankCardPay()).pay(1000);   //银行卡
        new AlipayPlaform(new CreditCardPay()).pay(1000); //信用卡

        System.out.println("-------------------------------------------");
        //微信平台
        new WeChatPlaform(new BalancePay()).pay(1000);    //余额
        new WeChatPlaform(new BankCardPay()).pay(1000);   //银行卡
        new WeChatPlaform(new CreditCardPay()).pay(1000); //信用卡
    }
}
